package com.lqs.sofp.service.impl;

import com.lqs.sofp.dao.ManagerInfoDao;
import com.lqs.sofp.dao.impl.ManagerInfoDaolmpl;
import com.lqs.sofp.entity.Manager;
import com.lqs.sofp.entity.User;
import com.lqs.sofp.service.ManagerService;
/**
 * @author lkh
 */
public class ManagerServiceImpl implements ManagerService {
    @Override
    public Manager login(String manager, String password) {
        ManagerInfoDao managerInfo = new ManagerInfoDaolmpl();
        Manager admin = managerInfo.selsect(manager);
        if (admin != null){
            if (admin.getPassword().equals(password)) {
                return admin;
            }
        }
        return null;
    }
}
